/***************************************************************************
 * File name: EPubMediaOPF2Imp.h
 * Original author: caizhifei2003@163.com
 * Date: 2013.03.04
 ***************************************************************************/
#ifndef _EPUB_MEDIA_OPF2_IMP_H_
#define _EPUB_MEDIA_OPF2_IMP_H_

#include "IEPubMediaOPF2.h"
#include <string>

class EPubMediaOPF2Imp : public IEPubMediaOPF2
{
public:

	virtual EPUB_MediaFileType GetMediaFileType() const { return EPUB_MFT_OPF2; }
	virtual const char *GetHref() const { return m_Href.c_str(); };
	virtual void SetHref(const char *href) { m_Href = href; }

	virtual EPubPointer<IEPubBuffer> Serialize(EPubPointer<IEPubEncryption> encryption = NULL) const;
	virtual EPUB_Result Deserialize(const EPubPointer<IEPubBuffer> buffer, EPubPointer<IEPubDecryption> decryption = NULL);

private:
	std::string						m_Href;
};

#endif // _EPUB_MEDIA_OPF2_IMP_H_